package com.xxx.mall.constant;

/**
 * @author 邢晨旭
 * {@code @date} 2023/11/15
 */
public interface AuthCacheNames {

    /**
     * auth 授权相关key
     */
    String OAUTH_PREFIX = "mall_auth:";

    /**
     * token 授权相关key
     */
    String OAUTH_TOKEN_PREFIX = OAUTH_PREFIX + "token:";

    /**
     * 保存token 缓存使用key
     */
    String ACCESS = OAUTH_TOKEN_PREFIX + "access:";

    /**
     * 刷新token 缓存使用key
     */
    String REFRESH_TO_ACCESS = OAUTH_TOKEN_PREFIX + "refresh_to_access:";
    String REFRESH_TO_USER = OAUTH_TOKEN_PREFIX + "refresh_to_user:";

    /**
     * 根据uid获取保存的token key缓存使用的key
     */
    String UID_TO_ACCESS = OAUTH_TOKEN_PREFIX + "uid_to_access:";
}
